﻿using System.Collections.Generic;

namespace CoreShop.Model
{
    /// <summary>
    /// 会员充值挡位
    /// </summary>
    public class TopUpItemMode : ApiReturnModel
    {
        public List<TopUpItemDataMode> rows {  get; set; }
    }

    /// <summary>
    /// 会员充值挡位数据
    /// </summary>
    public class TopUpItemDataMode
    {
        /// <summary>
        /// 充值档位id
        /// </summary>
        public string rechargeStandardId { get; set; }

        /// <summary>
        /// 充值档位名称
        /// </summary>
        public string rechargeStandardName {  get; set; }

        /// <summary>
        /// 组织id
        /// </summary>
        public string organizationId {  get; set; }

        /// <summary>
        /// 金额
        /// </summary>
        public string amount {  get; set; }

        /// <summary>
        /// 状态
        /// 0：无效
        /// 1：有效
        /// </summary>
        public string status {  get; set; }

        /// <summary>
        /// 赠金
        /// </summary>
        public string amountZ { get; set; }

        /// <summary>
        /// 本金
        /// </summary>
        public decimal amountPrice
        {
            get { return string.IsNullOrEmpty(amount) ? 0 : decimal.Parse(amount); }
        }


    }

    /// <summary>
    /// 会员充值挡位数据
    /// </summary>
    public class TopUpItemDataInfoMode
    {
        /// <summary>
        /// 是否首充 是否首充 0 是 1 否
        /// </summary>
        public int? isFirst { get; set; }
        /// <summary>
        /// 充值档位id
        /// </summary>
        public string rechargeStandardId { get; set; }

        /// <summary>
        /// 充值档位名称
        /// </summary>
        public string rechargeStandardName { get; set; }

        /// <summary>
        /// 组织id
        /// </summary>
        public string organizationId { get; set; }

        /// <summary>
        /// 金额
        /// </summary>
        public decimal amount { get; set; }

        /// <summary>
        /// 状态
        /// 0：无效
        /// 1：有效
        /// </summary>
        public string status { get; set; }

        /// <summary>
        /// 赠金
        /// </summary>
        public decimal amountZ { get; set; }

        /// <summary>
        /// 首充赠金
        /// </summary>
        public string amountFirstZ { get; set; }

        /// <summary>
        /// 本金
        /// </summary>
        public decimal amountPrice
        {
            get { return amount; }
        }
        /// <summary>
        /// 充值规则ID
        /// </summary>
        public string rechargeRuleId { get; set; }
        /// <summary>
        /// 档位赠送优惠券id
        /// </summary>
        public string couponBatchId { get; set; }
        /// <summary>
        /// 赠送优惠券名称
        /// </summary>
        public string couponBatchName { get; set; }
        /// <summary>
        /// 赠送积分
        /// </summary>
        public string qty { get; set; }
    }
}
